<?php
/**
 * ===============================================
 * 版权所有 2019-2050 青岛铁锤科技有限公司，并保留所有权利。
 * 网站地址: http://www.huaxianling.com
 * ===============================================
 * Author: Rag Hu
 * Created Time: 2019/8/29 11:17
 * Modified Time: 2019/8/29 11:17
 * Version: 2.0
 */
namespace App\Modules\System\Services;
use App\Modules\System\Repositories\VersionRepository;
use Flower\Core\Repository\Eloquent\BaseService;
class VersionService extends BaseService{
    private $versionRepository;
    public function __construct(VersionRepository $versionRepository){
        $this->versionRepository = $versionRepository;
    }
    public function getAppVersion($app_type = '1'){
        return $this->versionRepository->getLastNewVersion($app_type);
    }
}